package com.hydl.power.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TempDataExample {
    /**
     */
    protected String orderByClause;

    /**
     */
    protected boolean distinct;

    /**
     */
    protected List<Criteria> oredCriteria;

    public TempDataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNull() {
            addCriterion("device_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNotNull() {
            addCriterion("device_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdEqualTo(String value) {
            addCriterion("device_id =", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotEqualTo(String value) {
            addCriterion("device_id <>", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThan(String value) {
            addCriterion("device_id >", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThanOrEqualTo(String value) {
            addCriterion("device_id >=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThan(String value) {
            addCriterion("device_id <", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThanOrEqualTo(String value) {
            addCriterion("device_id <=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLike(String value) {
            addCriterion("device_id like", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotLike(String value) {
            addCriterion("device_id not like", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIn(List<String> values) {
            addCriterion("device_id in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotIn(List<String> values) {
            addCriterion("device_id not in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdBetween(String value1, String value2) {
            addCriterion("device_id between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotBetween(String value1, String value2) {
            addCriterion("device_id not between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceNameIsNull() {
            addCriterion("device_name is null");
            return (Criteria) this;
        }

        public Criteria andDeviceNameIsNotNull() {
            addCriterion("device_name is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceNameEqualTo(String value) {
            addCriterion("device_name =", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameNotEqualTo(String value) {
            addCriterion("device_name <>", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameGreaterThan(String value) {
            addCriterion("device_name >", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameGreaterThanOrEqualTo(String value) {
            addCriterion("device_name >=", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameLessThan(String value) {
            addCriterion("device_name <", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameLessThanOrEqualTo(String value) {
            addCriterion("device_name <=", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameLike(String value) {
            addCriterion("device_name like", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameNotLike(String value) {
            addCriterion("device_name not like", value, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameIn(List<String> values) {
            addCriterion("device_name in", values, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameNotIn(List<String> values) {
            addCriterion("device_name not in", values, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameBetween(String value1, String value2) {
            addCriterion("device_name between", value1, value2, "deviceName");
            return (Criteria) this;
        }

        public Criteria andDeviceNameNotBetween(String value1, String value2) {
            addCriterion("device_name not between", value1, value2, "deviceName");
            return (Criteria) this;
        }

        public Criteria andAreaIdIsNull() {
            addCriterion("area_id is null");
            return (Criteria) this;
        }

        public Criteria andAreaIdIsNotNull() {
            addCriterion("area_id is not null");
            return (Criteria) this;
        }

        public Criteria andAreaIdEqualTo(String value) {
            addCriterion("area_id =", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdNotEqualTo(String value) {
            addCriterion("area_id <>", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdGreaterThan(String value) {
            addCriterion("area_id >", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdGreaterThanOrEqualTo(String value) {
            addCriterion("area_id >=", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdLessThan(String value) {
            addCriterion("area_id <", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdLessThanOrEqualTo(String value) {
            addCriterion("area_id <=", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdLike(String value) {
            addCriterion("area_id like", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdNotLike(String value) {
            addCriterion("area_id not like", value, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdIn(List<String> values) {
            addCriterion("area_id in", values, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdNotIn(List<String> values) {
            addCriterion("area_id not in", values, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdBetween(String value1, String value2) {
            addCriterion("area_id between", value1, value2, "areaId");
            return (Criteria) this;
        }

        public Criteria andAreaIdNotBetween(String value1, String value2) {
            addCriterion("area_id not between", value1, value2, "areaId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(String value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(String value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(String value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(String value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(String value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(String value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLike(String value) {
            addCriterion("project_id like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotLike(String value) {
            addCriterion("project_id not like", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<String> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<String> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(String value1, String value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(String value1, String value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdIsNull() {
            addCriterion("power_room_id is null");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdIsNotNull() {
            addCriterion("power_room_id is not null");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdEqualTo(String value) {
            addCriterion("power_room_id =", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdNotEqualTo(String value) {
            addCriterion("power_room_id <>", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdGreaterThan(String value) {
            addCriterion("power_room_id >", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdGreaterThanOrEqualTo(String value) {
            addCriterion("power_room_id >=", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdLessThan(String value) {
            addCriterion("power_room_id <", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdLessThanOrEqualTo(String value) {
            addCriterion("power_room_id <=", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdLike(String value) {
            addCriterion("power_room_id like", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdNotLike(String value) {
            addCriterion("power_room_id not like", value, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdIn(List<String> values) {
            addCriterion("power_room_id in", values, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdNotIn(List<String> values) {
            addCriterion("power_room_id not in", values, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdBetween(String value1, String value2) {
            addCriterion("power_room_id between", value1, value2, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andPowerRoomIdNotBetween(String value1, String value2) {
            addCriterion("power_room_id not between", value1, value2, "powerRoomId");
            return (Criteria) this;
        }

        public Criteria andTemperatureAIsNull() {
            addCriterion("temperature_a is null");
            return (Criteria) this;
        }

        public Criteria andTemperatureAIsNotNull() {
            addCriterion("temperature_a is not null");
            return (Criteria) this;
        }

        public Criteria andTemperatureAEqualTo(String value) {
            addCriterion("temperature_a =", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureANotEqualTo(String value) {
            addCriterion("temperature_a <>", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureAGreaterThan(String value) {
            addCriterion("temperature_a >", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureAGreaterThanOrEqualTo(String value) {
            addCriterion("temperature_a >=", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureALessThan(String value) {
            addCriterion("temperature_a <", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureALessThanOrEqualTo(String value) {
            addCriterion("temperature_a <=", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureALike(String value) {
            addCriterion("temperature_a like", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureANotLike(String value) {
            addCriterion("temperature_a not like", value, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureAIn(List<String> values) {
            addCriterion("temperature_a in", values, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureANotIn(List<String> values) {
            addCriterion("temperature_a not in", values, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureABetween(String value1, String value2) {
            addCriterion("temperature_a between", value1, value2, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureANotBetween(String value1, String value2) {
            addCriterion("temperature_a not between", value1, value2, "temperatureA");
            return (Criteria) this;
        }

        public Criteria andTemperatureBIsNull() {
            addCriterion("temperature_b is null");
            return (Criteria) this;
        }

        public Criteria andTemperatureBIsNotNull() {
            addCriterion("temperature_b is not null");
            return (Criteria) this;
        }

        public Criteria andTemperatureBEqualTo(String value) {
            addCriterion("temperature_b =", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBNotEqualTo(String value) {
            addCriterion("temperature_b <>", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBGreaterThan(String value) {
            addCriterion("temperature_b >", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBGreaterThanOrEqualTo(String value) {
            addCriterion("temperature_b >=", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBLessThan(String value) {
            addCriterion("temperature_b <", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBLessThanOrEqualTo(String value) {
            addCriterion("temperature_b <=", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBLike(String value) {
            addCriterion("temperature_b like", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBNotLike(String value) {
            addCriterion("temperature_b not like", value, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBIn(List<String> values) {
            addCriterion("temperature_b in", values, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBNotIn(List<String> values) {
            addCriterion("temperature_b not in", values, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBBetween(String value1, String value2) {
            addCriterion("temperature_b between", value1, value2, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureBNotBetween(String value1, String value2) {
            addCriterion("temperature_b not between", value1, value2, "temperatureB");
            return (Criteria) this;
        }

        public Criteria andTemperatureCIsNull() {
            addCriterion("temperature_c is null");
            return (Criteria) this;
        }

        public Criteria andTemperatureCIsNotNull() {
            addCriterion("temperature_c is not null");
            return (Criteria) this;
        }

        public Criteria andTemperatureCEqualTo(String value) {
            addCriterion("temperature_c =", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCNotEqualTo(String value) {
            addCriterion("temperature_c <>", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCGreaterThan(String value) {
            addCriterion("temperature_c >", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCGreaterThanOrEqualTo(String value) {
            addCriterion("temperature_c >=", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCLessThan(String value) {
            addCriterion("temperature_c <", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCLessThanOrEqualTo(String value) {
            addCriterion("temperature_c <=", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCLike(String value) {
            addCriterion("temperature_c like", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCNotLike(String value) {
            addCriterion("temperature_c not like", value, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCIn(List<String> values) {
            addCriterion("temperature_c in", values, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCNotIn(List<String> values) {
            addCriterion("temperature_c not in", values, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCBetween(String value1, String value2) {
            addCriterion("temperature_c between", value1, value2, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureCNotBetween(String value1, String value2) {
            addCriterion("temperature_c not between", value1, value2, "temperatureC");
            return (Criteria) this;
        }

        public Criteria andTemperatureNIsNull() {
            addCriterion("temperature_n is null");
            return (Criteria) this;
        }

        public Criteria andTemperatureNIsNotNull() {
            addCriterion("temperature_n is not null");
            return (Criteria) this;
        }

        public Criteria andTemperatureNEqualTo(String value) {
            addCriterion("temperature_n =", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNNotEqualTo(String value) {
            addCriterion("temperature_n <>", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNGreaterThan(String value) {
            addCriterion("temperature_n >", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNGreaterThanOrEqualTo(String value) {
            addCriterion("temperature_n >=", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNLessThan(String value) {
            addCriterion("temperature_n <", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNLessThanOrEqualTo(String value) {
            addCriterion("temperature_n <=", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNLike(String value) {
            addCriterion("temperature_n like", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNNotLike(String value) {
            addCriterion("temperature_n not like", value, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNIn(List<String> values) {
            addCriterion("temperature_n in", values, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNNotIn(List<String> values) {
            addCriterion("temperature_n not in", values, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNBetween(String value1, String value2) {
            addCriterion("temperature_n between", value1, value2, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andTemperatureNNotBetween(String value1, String value2) {
            addCriterion("temperature_n not between", value1, value2, "temperatureN");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}